﻿
namespace IniFileManager
{
	internal static class TextConstants
	{
		internal static readonly char assigmentChar = '=';

		internal static readonly char referenceElementStartChar = '$';
		internal static readonly char referenceElementLeftBracket = '{';
		internal static readonly char referenceElementRightBracket = '}';
		internal static readonly char referenceElementDelimiterChar = '#';

		internal static readonly char sectionLeftBracket = '[';
		internal static readonly char sectionRightBracket = ']';

		internal static readonly string[] boolTrueSet = new string[] { "1", "t", "y", "on", "yes", "enabled" };
		internal static readonly string[] boolFalseSet = new string[] { "0", "f", "n", "off", "no", "disabled" };

		internal static readonly char startCommentChar = ';';

		internal static readonly char escapeChar = '\\'; // the char is actually '\', here is '\\' because value is escaped

		internal static readonly char defaultWhiteSpace = ' ';

		internal static readonly string spaceBeforeComment = " ";

		internal static readonly char[] identificatorSpecialChars = new char[] { '_', '~', '-', '.', ':', '$', ' ' };
		internal static readonly char[] identificatorStartSpecialChars = new char[] { '.', '$', ':' };

		internal static readonly char[] whiteSpaces = new char[] { ' ', '\t' };
	}
}
